@import './normalize.scss';
@import './common.scss';

.full-screen {
  min-width: 980px;
  .side-label {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #00000080;
  }

  // 框选样式
  .x6-widget-selection-inner {
    z-index: 9999;
  }

  // 容器节点通用样式
  .x6-cell.x6-node {
    &.focus {
      rect,
      text {
        stroke: #67c23a;
      }

      .icon-body {
        background-color: #67c23a;
      }

      label {
        color: #67c23a;
      }
    }
    &.error {
      .icon-body {
        background-color: #ff000090;
      }
      label {
        color: #f00;
      }
    }
  }

  // 带图标的原子节点通用样式
  .icon-atom-node {
    height: 100%;
    width: 100%;

    .icon-body {
      background-color: #00000008;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-wrap: nowrap;
    }
    label {
      display: block;
      white-space: nowrap;
      text-align: center;
      font-weight: 400;
      line-height: 18px;
      font-size: 12px;
      color: #00000080;
    }
    img {
      margin: 0 6px;
    }

    .car {
      display: inline-block;
      width: 28px;
      height: 28px;
      background-color: #34c759;
      margin: 0 10px;
    }
  }
  .icon-conveyor {
    background: #e7edf6 url('@/assets/icons/conveyor.svg') repeat;
  }
  .icon-start {
    background: #e7edf6 url('@/assets/icons/start.svg') no-repeat center center;
  }
  .icon-factory {
    background: #e7edf6 url('@/assets/icons/factory.svg') no-repeat center center;
  }
  .icon-workshop {
    background: #e7edf6 url('@/assets/icons/workshop.svg') no-repeat center center;
  }
  .icon-productionLine {
    background: #e7edf6 url('@/assets/icons/productionLine.svg') no-repeat center center;
  }
  .icon-storageArea {
    background: #e7edf6 url('@/assets/icons/storageArea.svg') no-repeat center center;
  }
  .icon-station {
    background: #e7edf6 url('@/assets/icons/station.svg') no-repeat center center;
  }
  .icon-end {
    background: #e7edf6 url('@/assets/icons/end.svg') no-repeat center center;
  }

  .block {
    margin: 48px 0 0 0;
  }
}

// 右键菜单
.x6-context-menu {
  position: absolute;
  width: 155px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  box-shadow: 0px 2px 8px rgba(200, 201, 204, 0.5);
  background-color: #fff;
  z-index: 99999;

  &.parent .x6-parent,
  &.child .x6-child,
  &.edit .x6-edit,
  &.unembed .x6-unembed {
    color: #00000090;
    cursor: pointer;
    pointer-events: auto;

    &:hover {
      background-color: #00000008;
    }
  }

  div {
    padding: 8px 16px;
    color: #00000030;
    cursor: not-allowed;
    pointer-events: none;
  }
}
